<?php
/**
 * ExaminationType Service.
 * User: Administrator
 * Date: 2020/2/13 0013
 * Time: 下午 2:02
 */
namespace app\api\service\questions;

use app\api\model\questions\Answer as AnswerModels;

Class Answer {

    /**
     * 查看问题详情
     * @return mixed
     */
    public function read(int $id)
    {
        return AnswerModels::with(['opt'])->getOrFail($id)->append(['type_text']);
    }

}